<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>行内元素盒子模型</title>
    <style>
        * { margin: 0; padding: 0;}
        span {background-color: orange;}
        .box1 {width: 100px; height: 100px; background-color: #bfa;}

        span {
            /* 不能直接设置宽高, 控制行内元素大小 */
            /* width: 100px; */
            /* height: 40px; */
            /* 可以设置边框, 但不会影响元素实际大小 */
            /* border: 40px solid red; */
            /* 左右内边距可以设置, 上下内边距可以设置但是不影响元素实际大小 */
            /* padding: 30px 40px; */
            /* 左右外边距可以设置 */
            margin: 20px 10px;
        }
    </style>
</head>
<body>
    <span>this is span</span>
    <span>this is span</span>
    <span>this is span</span>
    <span>this is span</span>
    <div class="box1"></div>
</body>
</html>